package com.photography.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@TableName("tb_order")
public class Order implements Serializable {
    @TableId(type = IdType.INPUT)
    private   String     id;                   // 订单id
    private   BigDecimal amountpayable;         // 应付金额
    private   BigDecimal antecedentmoney;       // 已付押金
    private   String     sourcetype;           // 客户来源
    private   Integer    state;              // 状态：1、已结清 2、其他
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private   Date       openordertime;        // 开单时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private   Date       appointmenttime;      // 预约时间

    @TableField(exist = false)
    private   String      starttime;

    @TableField(exist = false)
    private   String       endtime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private   Date       choosephototime;      // 选片时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private   Date       makephototime;        // 制作时间

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private   Date       designtime;        // 制作时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private   Date       pickuptime;           // 取件时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private   Date       createtime;           // 订单创建时间
    private   String     customerid;        // 用户id
    private   String     note;
    private String       customersource;
    private String       secondarysales;

    private String       firstsale;
    @TableField(exist = false)
    private String       appointmenttimestring;

    @TableField(exist = false)
    private String       choosephototimestring;

    @TableField(exist = false)
    private String       pickuptimestring;
    private Integer       status;

    @TableField(exist = false)
    private Customer customer;


    @TableField(exist = false)
    private String       serialname;
    @TableField(exist = false)
    private String    makephototimestring;
    @TableField(exist = false)
    private String     designtimestring;

    @TableField(exist = false)
    private String      changecustomstate;

    @TableField(exist = false)
    private List<Serial> serials;

    @TableField(exist = false)
    private List<Product> products;


    public String getChangecustomstate() {
        return changecustomstate;
    }

    public void setChangecustomstate(String changecustomstate) {
        this.changecustomstate = changecustomstate;
    }

    public String getMakephototimestring() {
        return makephototimestring;
    }

    public void setMakephototimestring(String makephototimestring) {
        this.makephototimestring = makephototimestring;
    }

    public String getDesigntimestring() {
        return designtimestring;
    }

    public void setDesigntimestring(String designtimestring) {
        this.designtimestring = designtimestring;
    }

    public String getStarttime() {
        return starttime;
    }

    public void setStarttime(String starttime) {
        this.starttime = starttime;
    }

    public String getEndtime() {
        return endtime;
    }

    public void setEndtime(String endtime) {
        this.endtime = endtime;
    }

    public String getSerialname() {
        return serialname;
    }

    public void setSerialname(String serialname) {
        this.serialname = serialname;
    }

    public String getAppointmenttimestring() {
        return appointmenttimestring;
    }
    public void setAppointmenttimestring(String appointmenttimestring) {
        this.appointmenttimestring = appointmenttimestring;
    }
    public String getChoosephototimestring() {
        return choosephototimestring;
    }
    public void setChoosephototimestring(String choosephototimestring) {
        this.choosephototimestring = choosephototimestring;
    }

    public String getPickuptimestring() {
        return pickuptimestring;
    }

    public void setPickuptimestring(String pickuptimestring) {
        this.pickuptimestring = pickuptimestring;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public BigDecimal getAmountpayable() {
        return amountpayable;
    }

    public void setAmountpayable(BigDecimal amountpayable) {
        this.amountpayable = amountpayable;
    }

    public BigDecimal getAntecedentmoney() {
        return antecedentmoney;
    }

    public void setAntecedentmoney(BigDecimal antecedentmoney) {
        this.antecedentmoney = antecedentmoney;
    }

    public String getSourcetype() {
        return sourcetype;
    }

    public void setSourcetype(String sourcetype) {
        this.sourcetype = sourcetype;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getOpenordertime() {
        return openordertime;
    }

    public void setOpenordertime(Date openordertime) {
        this.openordertime = openordertime;
    }

    public Date getAppointmenttime() {
        return appointmenttime;
    }

    public void setAppointmenttime(Date appointmenttime) {
        this.appointmenttime = appointmenttime;
    }

    public Date getChoosephototime() {
        return choosephototime;
    }

    public void setChoosephototime(Date choosephototime) {
        this.choosephototime = choosephototime;
    }

    public Date getMakephototime() {
        return makephototime;
    }

    public void setMakephototime(Date makephototime) {
        this.makephototime = makephototime;
    }

    public Date getPickuptime() {
        return pickuptime;
    }

    public void setPickuptime(Date pickuptime) {
        this.pickuptime = pickuptime;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getCustomerid() {
        return customerid;
    }

    public void setCustomerid(String customerid) {
        this.customerid = customerid;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public List<Serial> getSerials() {
        return serials;
    }

    public void setSerials(List<Serial> serials) {
        this.serials = serials;
    }

    public String getCustomersource() {
        return customersource;
    }

    public void setCustomersource(String customersource) {
        this.customersource = customersource;
    }

    public String getSecondarysales() {
        return secondarysales;
    }

    public void setSecondarysales(String secondarysales) {
        this.secondarysales = secondarysales;
    }

    public Date getDesigntime() {
        return designtime;
    }

    public void setDesigntime(Date designtime) {
        this.designtime = designtime;
    }

    public String getFirstsale() {
        return firstsale;
    }

    public void setFirstsale(String firstsale) {
        this.firstsale = firstsale;
    }

    public List<Product> getProducts() {
        return products;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public void setProducts(List<Product> products) {
        this.products = products;
    }
}
